
// 节流
function throttle(fn, wait) {
  let timeout
  let that = this
  return function() {
    if (timeout) return
    let args = [].slice.call(arguments)
    timeout = setTimeout(() => {
      fn.apply(that, args)
      timeout = null
    }, wait)
  }
}

// 获取月份的总共天数
function getDayInMonth(year, month) {
  return 32 - new Date(year, month, 32).getDate()
}


// 月份的相加 

// 当期时间+6个月
let a = new Date()
a.setMonth(a.getMonth() + 6)


